﻿@{
    Layout = null;
}
@using System.Linq
@model System.Collections.Generic.IEnumerable<DotNet.Model.BaseModuleEntity>

<div class="accordion" fillSpace="sidebar">
@foreach (var row in Model.Where(x => x.ParentId.ToString() == ViewBag.PID))
{
        <div class="accordionHeader">
		    <h2><span>Folder</span>@row.FullName</h2>
	    </div>
        <div class="accordionContent">
                <ul class="tb_are">
                @foreach (var dr in Model.Where(y => y.ParentId == row.Id))
                {
                    <li>
                    <a  href="@dr.NavigateUrl" target="navTab" rel="@dr.Code">
                        <div><img src="@dr.ImageUrl" border="0"  alt="@dr.FullName"/></div>
								<div style="height:18px; line-height:18px;">@dr.FullName</div>	
                    </a>
                    </li>
                }
			    </ul>
        </div>
}
</div>